package com.szq.pattern;

import java.util.Date;

/**
 * @description:
 * @author: szq
 * @date: 2021-09-13 13:11:27
 */
public class LotteryServiceImpl extends LotteryService {

    MinibusTargetService minibusTargetService = new MinibusTargetService();

    @Override
    protected LotteryResult doDraw(String uId) {
        String lottery = minibusTargetService.lottery(uId);
        return new LotteryResult(uId, lottery, new Date());
    }
}
